package xs.szw.service.model.pojo.gen;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 代码生成字段配置表
 * @TableName gen_field_config
 */
@TableName(value ="gen_field_config")
@Data
public class FieldConfig implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关联的配置ID
     */
    @TableField(value = "config_id")
    private Long configId;

    /**
     * 
     */
    @TableField(value = "column_name")
    private String columnName;

    /**
     * 
     */
    @TableField(value = "column_type")
    private String columnType;

    /**
     * 
     */
    @TableField(value = "column_length")
    private Integer columnLength;

    /**
     * 字段名称
     */
    @TableField(value = "field_name")
    private String fieldName;

    /**
     * 字段类型
     */
    @TableField(value = "field_type")
    private String fieldType;

    /**
     * 字段排序
     */
    @TableField(value = "field_sort")
    private Integer fieldSort;

    /**
     * 字段描述
     */
    @TableField(value = "field_comment")
    private String fieldComment;

    /**
     * 
     */
    @TableField(value = "max_length")
    private Integer maxLength;

    /**
     * 是否必填
     */
    @TableField(value = "is_required")
    private Integer isRequired;

    /**
     * 是否在列表显示
     */
    @TableField(value = "is_show_in_list")
    private Integer isShowInList;

    /**
     * 是否在表单显示
     */
    @TableField(value = "is_show_in_form")
    private Integer isShowInForm;

    /**
     * 是否在查询条件显示
     */
    @TableField(value = "is_show_in_query")
    private Integer isShowInQuery;

    /**
     * 查询方式
     */
    @TableField(value = "query_type")
    private Integer queryType;

    /**
     * 表单类型
     */
    @TableField(value = "form_type")
    private Integer formType;

    /**
     * 字典类型
     */
    @TableField(value = "dict_type")
    private String dictType;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}